<template>
	<view class="my">
		我的
		<tabBar :selectedIndex="selectedTabIndex"></tabBar>
	</view>
</template>

<script setup>
import { computed } from 'vue'
import { onShow } from '@dcloudio/uni-app'
onShow(()=>{
	uni.hideTabBar({
		animation:false
	})
})

const selectedTabIndex = computed(()=>{
	return uni.getStorageSync('identify') === 'tom' ? 1 : 2
})
</script>

<style lang="scss" scoped>
.my{
	text-align: center;
	color: #00BAB2;
	margin-top: 20rpx;
}
</style>